package com.simplegovern.dict;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * SysDictItem entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_dict_item")
public class DictItem implements java.io.Serializable {

	// Fields

	private Long id;
	private String name;
	private String value;
	private Long sort;
	private Long typeId;

	// Constructors

	/** default constructor */
	public DictItem() {
	}

	/** full constructor */
	public DictItem(String name, String value, Long sort, Long typeId) {
		this.name = name;
		this.value = value;
		this.sort = sort;
		this.typeId = typeId;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "name", nullable = false)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "value", nullable = false)
	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Column(name = "sort", nullable = false)
	public Long getSort() {
		return this.sort;
	}

	public void setSort(Long sort) {
		this.sort = sort;
	}

	@Column(name = "typeId", nullable = false)
	public Long getTypeId() {
		return this.typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

}